package com.guoshengdeu.door.service.impl;

import com.guoshengdeu.door.entity.Menu;
import com.guoshengdeu.door.mapper.MenuMapper;
import com.guoshengdeu.door.service.IMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sun.corba.se.spi.ior.ObjectKey;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yfly
 * @since 2021-06-01
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {

    //
    @Resource
    MenuMapper menuMapper;
    public List<Map<String, Object>> findById() {
        return menuMapper.findById();
    }


    public List<Map<String, Object>> findByIdList(Integer menuId){
        return menuMapper.findByIdList(menuId);
    }
}
